import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import './assets/styles/font.css';
import './assets/styles/icon.css';
import TopHeader from '@/components/topHeader'
import Bg from '@/components/bg'
import Barrage from '@/components/barrage'
import Empty from "@/components/empty"
import GoodsDetail from "@/components/GoodsDetail"
import { ignoreRatio0 } from "@/utils/tool"
import { event } from "@/utils/event"

import mitt from "mitt"


const app = createApp(App);
app.config.globalProperties.$ignoreRatio0 = ignoreRatio0
app.config.globalProperties.$event = event
app.config.globalProperties.$bus = new mitt();
app.component('TopHeader', TopHeader)
app.component('Bg', Bg)
app.component('Barrage', Barrage)
app.component('Empty', Empty)
app.component('GoodsDetail', GoodsDetail)
app.use(store)
app.use(router)
app.use(Vant);
app.mount('#app')

